home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / angel_fr.swf / scripts / frame_2 / DoAction_2.as next >
Text File  |  2013-04-24  |  843b  |  50 lines

  1. function vol_watch(prop, oldval, newval)
  2. {
  3.    if(newval == 1)
  4.    {
  5.       var _loc2_ = 0;
  6.       while(_loc2_ < 30)
  7.       {
  8.          _root["so" + _loc2_].setVolume(100);
  9.          _loc2_ = _loc2_ + 1;
  10.       }
  11.    }
  12.    else
  13.    {
  14.       _loc2_ = 0;
  15.       while(_loc2_ < 30)
  16.       {
  17.          _root["so" + _loc2_].setVolume(0);
  18.          _loc2_ = _loc2_ + 1;
  19.       }
  20.    }
  21. }
  22. stop();
  23. stopAllSounds();
  24. sounds = new Array();
  25. var i = 0;
  26. while(i < 25)
  27. {
  28.    this["so" + i] = new Sound(this);
  29.    this["so" + i].attachSound("so" + i);
  30.    i++;
  31. }
  32. start_bt.onRelease = function()
  33. {
  34.    gotoAndStop(4);
  35. };
  36. help_bt.onRelease = function()
  37. {
  38.    gotoAndStop(3);
  39. };
  40. start_bt.onRollOver = function()
  41. {
  42.    so17.start(0,1);
  43. };
  44. help_bt.onRollOver = function()
  45. {
  46.    so17.start(0,1);
  47. };
  48. var vol = 1;
  49. this.watch("vol",vol_watch);
  50.